From 3e73f8cf17ef0e71d67acd3ad9774cb3d8fc180b Mon Sep 17 00:00:00 2001 From: Joan Torres Lopez Date: Thu, 12 Feb 2026 16:38:04 +0100 Subject: [PATCH] unlockDialog: Fix username reuse on reset The condition was checking for PROVIDE_USERNAME specifically, but should also handle REUSE_USERNAME. Check for not DONT_PROVIDE_USERNAME instead to correctly reuse the username when requested. Part-of: (cherry picked from commit 2cb0627a467f2057c28bda57b6858ef04a7ddb55) --- js/ui/unlockDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index f5f31f5d4..971438a7c 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -849,7 +849,7 @@ export const UnlockDialog = GObject.registerClass({ _onReset(authPrompt, beginRequest) { let userName; - if (beginRequest === AuthPrompt.BeginRequestType.PROVIDE_USERNAME) { + if (beginRequest !== AuthPrompt.BeginRequestType.DONT_PROVIDE_USERNAME) { this._authPrompt.setUser(this._user); userName = this._userName; } else { -- 2.39.5